


//
//  UIPageControl+Extension.swift
//  HotNews
//
//  Created by YYY on 2017/10/17.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

import Foundation
extension UIPageControl
{
    convenience init(number: Int, currentPageColor: UIColor = UIColor.RGBColor(red: 20, green: 82, blue: 184), pageColor: UIColor = UIColor.black) {
        self.init()
        numberOfPages = number
        currentPageIndicatorTintColor = currentPageColor
        pageIndicatorTintColor = pageColor
        //关闭交互
        isUserInteractionEnabled = false
        //单页隐藏显示
        hidesForSinglePage = true
    }
}
